import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:sph_shipper/AppConfig/Config.dart';

class AirRunningStandard extends StatefulWidget {
  const AirRunningStandard({super.key});

  @override
  State<AirRunningStandard> createState() => _AirRunningStandardState();
}

class _AirRunningStandardState extends State<AirRunningStandard> {
  @override
  Widget build(BuildContext context) {
    final screenSize = MediaQuery.of(context).size;
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        backgroundColor: Colors.white,
      ),
      body: ListView(
        children: [
          Container(
            padding: EdgeInsets.only(top: 8.h,left: 15.w),
            child: Text("没装成货物，该给司机补偿多少钱？",style: TextStyle(color: Colors.black,fontSize: 16.sp),),
          ),
          Container(
            margin: EdgeInsets.only(left: 10.w,right: 10.w,top: 10.h),
            decoration: BoxDecoration(
              border: Border.all(
                color: MyColors.authTipColor,
                width: 1,
              ),
            ),
            child: Column(
              children: [
                Container(
                  height:30.h,
                  decoration: BoxDecoration(
                    color: Color.fromRGBO(25, 137, 250, 1),
                    border: Border.all(
                      color: MyColors.authTipColor,
                      width: 1,
                    ),
                  ),
                  child: Center(child: Text("放空赔付标准",style: TextStyle(color: Colors.white,fontSize: 12.sp,fontWeight: FontWeight.w600),),),
                ),
                Container(
                  height:30.h,
                  decoration: BoxDecoration(
                    border: Border.all(
                      color: MyColors.authTipColor,
                      width: 1,
                    ),
                  ),
                  child: Row(
                    children: [
                      Container(
                        width: (screenSize.width-30.w)/2,
                        child: Center(child: Text("车长",style: TextStyle(color: Colors.black,fontSize: 12.sp),),),
                      ),
                      Container(
                        width: 1.w,height: 30.h,
                        color: MyColors.authTipColor,
                      ),
                      Container(
                        width: (screenSize.width-30.w)/2,
                        child: Center(child: Text("赔付标准",style: TextStyle(color: Colors.black,fontSize: 12.sp),),),
                      ),
                    ],
                  ),
                ),
                Container(
                  height:30.h,
                  decoration: BoxDecoration(
                    border: Border.all(
                      color: MyColors.authTipColor,
                      width: 1,
                    ),
                  ),
                  child: Row(
                    children: [
                      Container(
                        width: (screenSize.width-30.w)/2,
                        child: Center(child: Text("6.8米及以下",style: TextStyle(color: Colors.black,fontSize: 12.sp),),),
                      ),
                      Container(
                        width: 1.w,height: 30.h,
                        color: MyColors.authTipColor,
                      ),
                      Container(
                        width: (screenSize.width-30.w)/2,
                        child: Center(child: Text("2.5元/公里",style: TextStyle(color: Colors.black,fontSize: 12.sp),),),
                      ),

                    ],
                  ),
                ),
                Container(
                  height:30.h,
                  decoration: BoxDecoration(
                    border: Border.all(
                      color: MyColors.authTipColor,
                      width: 1,
                    ),
                  ),
                  child: Row(
                    children: [
                      Container(
                        width: (screenSize.width-30.w)/2,
                        child: Center(child: Text("6.8米及以上-12.5米",style: TextStyle(color: Colors.black,fontSize: 12.sp),),),
                      ),
                      Container(
                        width: 1.w,height: 30.h,
                        color: MyColors.authTipColor,
                      ),
                      Container(
                        width: (screenSize.width-30.w)/2,
                        child: Center(child: Text("3元/公里",style: TextStyle(color: Colors.black,fontSize: 12.sp),),),
                      ),
                    ],
                  ),
                ),
                Container(
                  height:30.h,
                  decoration: BoxDecoration(
                    border: Border.all(
                      color: MyColors.authTipColor,
                      width: 1,
                    ),
                  ),
                  child: Row(
                    children: [
                      Container(
                        width: (screenSize.width-30.w)/2,
                        child: Center(child: Text("12.5米以上",style: TextStyle(color: Colors.black,fontSize: 12.sp),),),
                      ),
                      Container(
                        width: 1.w,height: 30.h,
                        color: MyColors.authTipColor,
                      ),
                      Container(
                        width: (screenSize.width-30.w)/2,
                        child: Center(child: Text("3.5元/公里",style: TextStyle(color: Colors.black,fontSize: 12.sp),),),
                      ),
                    ],
                  ),
                ),
            Container(
            padding: EdgeInsets.only(left: 8.w,right: 8.w,top: 8.h,bottom: 8.h),
              decoration: BoxDecoration(
                border: Border.all(
                  color: MyColors.authTipColor,
                  width: 1,
                ),
              ),
              child: Text("1.放空赔付金额=实际放空里程*赔付标准，最高不超过400元\n2.实际放空里程按照司机接单时所在位置与运单约定的装货地点或司机得知放空时所在位置之间的最短距离计算。\n3.因放空产生的其他费用如:采购物品、过路过桥费、进门费等待费等最高可赔付100元。"
              ,style: TextStyle(color: Colors.black,fontSize: 12.sp),),
            ),
              ],
            ),
          ),
          Container(
            margin: EdgeInsets.only(left: 10.w,right: 10.w,top: 3.h),
            child: Image.asset("lib/Images/OrderList/放空赔付标准.png",),
          ),

        ],
      ),
    );
  }
}
